﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum NotifyType
{
    CLOSE_HELP, // 关闭帮助
    
    ENTER_KITCHEN,
    END_LOGO, // 结束logo
    ENTER_MAP, // 进入地图
    
    KEYCODE_BACK, // ESC后退
}

public enum CardType
{
    NONE = -1,
    PRODUCT = 0, // 生产
    UPGRADE = 1, // 升级
    TRANSACTION = 2, // 交易
    ORDER = 3, // 订单
}

public enum SpiceColor
{
    NONE = -1,
    YELLOW = 0, // 姜黄
    RED = 1, // 辣椒红
    GREEN = 2, // 葱绿
    COFFEE = 3, // 咖啡灰
}

public struct CardData
{
    public CardType cardType;
    public object value;
}

public class CommonData
{
    public static List<CardData> cardList1;
    public static List<CardData> cardList2;
    public static int GetStarNumber(int score, int[] starNumbers)
    {
        int starNumber = 0;
        for (int i = starNumbers.Length - 1; i >= 0; i--)
        {
            if(score >= starNumbers[i])
            {
                starNumber = i + 1;
                break;
            }
        }

        return starNumber;
    }
}

